import { useEffect } from "react"

function Inter() {
    let timmer = null
    useEffect(()=>{
        // eslint-disable-next-line react-hooks/exhaustive-deps
        timmer = setInterval(() => {
            console.log(111);
        }, 1000);

        return ()=>{
            clearInterval(timmer)
        }
    })
}

export default Inter